// 创建路由对象
import Vue from 'vue'
import VueRouter from 'vue-router'
import TeacherView from "@/components/TeacherView.vue";
import StudentView from "@/components/StudentView.vue";

Vue.use(VueRouter)

// 路由列表

const routes = [
   {path:"/teacher",component:TeacherView},
   {path:"/student",component:StudentView}
]

const router = new VueRouter({
   routes
})


export default router


